package com.vietnam.power.domain;

import java.util.Date;

public class PaymentMethod {
	private Integer id;
	private Date createdDate;
	private String description;
	private String name;

	public PaymentMethod() {
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getCreatedDate() {
		return this.createdDate;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void convertToDomain(com.vietnam.power.persitence.PaymentMethod p) {
		this.id = p.getId();
		this.name = p.getName();
		this.description = p.getDescription();
		this.createdDate = p.getCreatedDate();
	}
	

	public void convertToPersist(com.vietnam.power.persitence.PaymentMethod p) {
		p.setName(this.name);
		p.setDescription(this.description);
	}
}